package com.example.zhu.dto;

import lombok.Data;

@Data
public class OrderProject {
    private Integer id;
    private String orderId;
    private String name;
    private Integer amount ;
    private Integer count;
    private Integer totalPrices;
    private String nickname;
    private String employeeType;
    public void calculateTotalPrice() {
        this.totalPrices = count * amount;
    }

    @Override
    public String toString() {
        return  "服务: " + name + "<br/>单价: " + amount + "\n次数: " + count + "\n合计: " + totalPrices+"\n";
    }
}
